<!DOCTYPE html>
<html lang="en">
<head>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6775988347285724"
     crossorigin="anonymous"></script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>玩物丧稚的个人主页</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #1e272e, #2c3e50);
            color: #ffffff;
            overflow-x: hidden;
        }
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 50px;
            background: rgba(0, 0, 0, 0.5);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }
        header h1 {
            font-size: 2.5rem;
            margin: 0;
        }
        header nav {
            display: flex;
            align-items: center;
        }
        header nav a {
            color: #ffffff;
            text-decoration: none;
            font-size: 1.2rem;
            margin-left: 20px;
            transition: color 0.3s ease;
        }
        header nav a:hover {
            color: #00ff80;
        }
        .main-content {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            flex-direction: column;
        }
        .main-content h2 {
            font-size: 3rem;
            margin: 0;
        }
        .main-content p {
            font-size: 1.2rem;
            margin: 20px 0;
        }
        .button {
            padding: 10px 20px;
            background: #00ff80;
            border: none;
            border-radius: 5px;
            font-size: 1.2rem;
            color: #1e272e;
            cursor: pointer;
            transition: background 0.3s ease;
            margin: 10px 0;
        }
        .button:hover {
            background: #00e676;
        }
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }
        footer {
            position: fixed;
            bottom: 0;
            width: 100%;
            padding: 10px 50px;
            background: rgba(0, 0, 0, 0.5);
            text-align: center;
        }
        footer p {
            margin: 0;
            font-size: 1rem;
        }
        .section {
            padding: 50px;
            text-align: center;
        }
        .section h2 {
            font-size: 2rem;
            margin-bottom: 20px;
        }
        .section p {
            font-size: 1.2rem;
            line-height: 1.6;
        }
    </style>
</head>
<body>
    <header>
        <h1>玩物丧稚个人主页</h1>
        <nav>
            <a href="#about">关于我</a>
            <a href="#portfolio">作品集</a>
            <a href="#blog">博客</a>
            <a href="#contact">联系我</a>
        </nav>
    </header>
    <div class="main-content">
        <h2>欢迎来到我的世界</h2>
        <p>这里是玩物丧稚，一个热爱科技和创新的人。</p>
        <button class="button" onclick="window.location.href='#about';">了解更多</button>
    </div>
    <div class="section" id="about">
        <h2>关于我</h2>
        <p>在时光的长河中，我是一颗微小的星辰，闪烁着对世界的好奇与热爱。我用文字记录生活的点滴，用代码编织梦想的蓝图。在这个充满诗意的角落，我希望能与你分享我的故事。</p>
    </div>
    <div class="section" id="portfolio">
        <h2>作品集</h2>
        <p>这里是我完成的一些项目和作品，涵盖了编程、设计和创意写作等多个领域。</p>
        <button class="button" onclick="window.location.href='/work';">查看作品集</button>
    </div>
    <div class="section" id="blog">
        <h2>我的博客</h2>
        <p>在这里，我记录了生活中的点滴、技术分享以及对世界的思考。</p>
        <button class="button" onclick="window.location.href='/blog';">访问我的博客</button>
    </div>
    <div class="section" id="contact">
        <h2>联系我</h2>
        <p>如果你对我的故事感兴趣，或者想和我分享你的想法，欢迎通过以下方式联系我。</p>
        <button class="button" onclick="window.location.href='mailto:kefu@wanwusangzhi.top';">发送邮件</button>
    </div>
    <footer>
        <p>&copy; 2025 玩物丧稚</p>
    </footer>
    <canvas class="particles"></canvas>
    <script>
        // 粒子效果
        const canvas = document.querySelector('.particles');
        const ctx = canvas.getContext('2d');

        canvas.width = window.innerWidth;
        canvas.height = window.innerHeight;

        window.addEventListener('resize', () => {
            canvas.width = window.innerWidth;
            canvas.height = window.innerHeight;
        });

        const particles = [];

        class Particle {
            constructor(x, y, color) {
                this.x = x;
                this.y = y;
                this.color = color;
                this.size = Math.random() * 3 + 1;
                this.speedX = Math.random() * 2 - 1;
                this.speedY = Math.random() * 2 - 1;
            }

            draw() {
                ctx.fillStyle = this.color;
                ctx.beginPath();
                ctx.arc(this.x, this.y, this.size, 0, Math.PI * 2);
                ctx.fill();
            }

            update() {
                this.x += this.speedX;
                this.y += this.speedY;

                if (this.x < 0 || this.x > canvas.width) this.speedX *= -1;
                if (this.y < 0 || this.y > canvas.height) this.speedY *= -1;
            }
        }

        function createParticles() {
            for (let i = 0; i < 100; i++) {
                const x = Math.random() * canvas.width;
                const y = Math.random() * canvas.height;
                const color = `hsl(${Math.random() * 360}, 100%, 50%)`;
                particles.push(new Particle(x, y, color));
            }
        }

        createParticles();

        function animate() {
            ctx.clearRect(0, 0, canvas.width, canvas.height);

            particles.forEach(particle => {
                particle.draw();
                particle.update();
            });

            requestAnimationFrame(animate);
        }

        animate();
    </script>
</body>
</html>
